<template>
    <view :style="themeColor">
        <view class="page" >
    <view class="flex flex-wrap align-center justify-between benben-position-layout flex promotionTeam_flex_0"    :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
            <view   class='flex flex-wrap align-center promotionTeam_fd0_0'   @tap.stop="handleJumpDiy" data-type="back" data-url="1"   >
        <image class='promotionTeam_fd0_0_c0'  mode="aspectFit"  :src='STATIC_URL+"307.png"'></image>
</view>
<text class='promotionTeam_fd0_1'  >团队推广</text>
    <view   class='flex flex-wrap align-center promotionTeam_fd0_0'      >
        </view>

        </view>
<view :style="{height: (88+StatusBarRpx)+'rpx'}"  ></view>
<!---flex布局flex布局开始-->
 <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout"    >
            <view   class='flex flex-wrap align-center promotionTeam_fd1_0'      >
        <image class='promotionTeam_fd1_0_c0'  mode="aspectFit"  :src='dataMy.avatar'></image>
<text class='promotionTeam_fd1_0_c1'  >{{dataMy.nickname}}</text>
    <view   class='flex flex-wrap align-center promotionTeam_fd1_0_c2'   @tap.stop="popupShow1679984842354=true"   >
        <text class='promotionTeam_fd1_0_c2_c0'  >规则说明</text>
</view>
</view>
</view>
        
<!---flex布局flex布局结束-->
<!---flex布局flex布局开始-->
 <view class="flex flex-direction align-stretch benben-flex-layout"    >
            <view   class='flex flex-direction align-stretch promotionTeam_fd2_0'      >
            <view   class='flex flex-wrap align-center justify-between promotionTeam_fd2_0_c0'      >
            <view   class='flex flex-direction flex-wrap align-start'      >
        <text class='promotionTeam_fd2_0_c0_c0_c0'  >总推广人数</text>
    <view   class='flex flex-wrap align-center'      >
        <text class='promotionTeam_fd2_0_c0_c0_c1_c0'  >{{dataMessage.people_total}}</text>
<text class='promotionTeam_fd2_0_c0_c0_c1_c1'  >人</text>
</view>
</view>
        
            <view class='flex  promotionTeam_fd2_0_c0_c1'    ></view>
        
    <view   class='flex flex-direction flex-wrap align-start'   @tap.stop="handleJumpDiy" data-type="navigateTo" :data-url="`/pages/wd/orderPromotion/orderPromotion?time=month`"   >
        <text class='promotionTeam_fd2_0_c0_c0_c0'  >本月订单</text>
    <view   class='flex flex-wrap align-center'      >
        <text class='promotionTeam_fd2_0_c0_c0_c1_c0'  >{{dataMessage.order_month}}</text>
<text class='promotionTeam_fd2_0_c0_c0_c1_c1'  >单</text>
</view>
</view>
        
            <view class='flex  promotionTeam_fd2_0_c0_c1'    ></view>
        
    <view   class='flex flex-direction flex-wrap align-start'   @tap.stop="handleJumpDiy" data-type="navigateTo" :data-url="`/pages/wd/orderPromotion/orderPromotion`"   >
        <text class='promotionTeam_fd2_0_c0_c0_c0'  >累计订单</text>
    <view   class='flex flex-wrap align-center'      >
        <text class='promotionTeam_fd2_0_c0_c0_c1_c0'  >{{dataMessage.order_total}}</text>
<text class='promotionTeam_fd2_0_c0_c0_c1_c1'  >单</text>
</view>
</view>
</view>
    <view   class='flex flex-wrap align-center justify-between promotionTeam_fd2_0_c1'   @tap.stop="handleJumpDiy" data-type="navigateTo" :data-url="`/pages/wd/IncomeDetail/IncomeDetail`"   >
            <view   class='flex flex-direction flex-wrap align-start'   @tap.stop="handleJumpDiy" data-type="navigateTo" :data-url="`/pages/wd/IncomeDetail/IncomeDetail?time=day`"   >
        <text class='promotionTeam_fd2_0_c0_c0_c0'  >今日收益</text>
    <view   class='flex flex-wrap align-center'      >
        <text class=' promotionTeam_fd2_0_c1_c0_c1_c0'   >
    <text class=' promotionTeam_price1_fd2_0_c1_c0_c1_c0' >{{ dataMessage.award_today | frontPrice('万') }}</text>
    <text class=' promotionTeam_price1_fd2_0_c1_c0_c1_c0' >{{ dataMessage.award_today | laterPrice('万') }}</text>
</text>
<text class='promotionTeam_fd2_0_c1_c0_c1_c1'  >元</text>
</view>
</view>
        
            <view class='flex  promotionTeam_fd2_0_c0_c1'    ></view>
        
    <view   class='flex flex-direction flex-wrap align-start promotionTeam_fd2_0_c1_c2'   @tap.stop="handleJumpDiy" data-type="navigateTo" :data-url="`/pages/wd/IncomeDetail/IncomeDetail?time=month`"   >
        <text class='promotionTeam_fd2_0_c0_c0_c0'  >本月收益</text>
    <view   class='flex flex-wrap align-center'      >
        <text class=' promotionTeam_fd2_0_c1_c0_c1_c0'   >
    <text class=' promotionTeam_price1_fd2_0_c1_c0_c1_c0' >{{ dataMessage.award_month | frontPrice('万') }}</text>
    <text class=' promotionTeam_price1_fd2_0_c1_c0_c1_c0' >{{ dataMessage.award_month | laterPrice('万') }}</text>
</text>
<text class='promotionTeam_fd2_0_c1_c0_c1_c1'  >元</text>
</view>
</view>
        
            <view class='flex  promotionTeam_fd2_0_c0_c1'    ></view>
        
    <view   class='flex flex-direction flex-wrap align-start'      >
        <text class='promotionTeam_fd2_0_c0_c0_c0'  >累计收益</text>
    <view   class='flex flex-wrap align-center'      >
        <text class=' promotionTeam_fd2_0_c1_c0_c1_c0'   >
    <text class=' promotionTeam_price1_fd2_0_c1_c0_c1_c0' >{{ dataMessage.award_total | frontPrice('万') }}</text>
    <text class=' promotionTeam_price1_fd2_0_c1_c0_c1_c0' >{{ dataMessage.award_total | laterPrice('万') }}</text>
</text>
<text class='promotionTeam_fd2_0_c1_c0_c1_c1'  >元</text>
</view>
</view>
</view>
</view>
</view>
        
<!---flex布局flex布局结束-->
<!---flex布局flex布局开始-->
 <view class="flex flex-direction align-stretch benben-flex-layout"    >
            <view   class='flex flex-direction flex-wrap align-stretch promotionTeam_fd3_0'      >
        <view>
        <benben-flex-tabs class-name='promotionTeam_benbenTabsfd3_0_c0'  v-model="tabs" ref="benben_tabsfd3_0_c0" select-mark="benben_tabsfd3_0_c0" key="benben_tabsfd3_0_c0" :open-title-type='false' :open-sticky='true' :top='0' :is-show-content='false' :scrollspy='false'  :tabs-info.sync="tabsInfofd3_0_c0" @change="queryListFunc()" >
            
                    <scroll-view
          @scroll="tabsInfofd3_0_c0.scrollX = $event.detail.scrollLeft"
          id="benben_tabsfd3_0_c0"
          class="benben-tabs"
          style="width:750rpx"
          :scroll-x="true"
          :scroll-left.sync="tabsInfofd3_0_c0.moveX"
          scroll-with-animation="all .3s ease"
        >
          <view class="benben-tabs-content" id="benben_tabsfd3_0_c0-content">
            <view id="benben_tabsfd3_0_c0-title" class="benben-tabs-title flex align-center flex ">
                        <view 
                :class="{ 'checkTitlefd3_0_c0': tabs == 'all', 'flex flex-wrap align-center promotionTeam_titlefd3_0_c0_c3': true }"
                @tap="tabs = 'all'"
                :id="`benben_tabsfd3_0_c0-title-item-${'all'}`"
                
                
              >
                
<text   >全部人员(</text>

<text   >{{dataMessage.people_total}}</text>

<text   >)</text>

              </view>            <view 
                :class="{ 'checkTitlefd3_0_c0': tabs == 'first', 'flex flex-wrap align-center promotionTeam_titlefd3_0_c0_c3': true }"
                @tap="tabs = 'first'"
                :id="`benben_tabsfd3_0_c0-title-item-${'first'}`"
                
                
              >
                
<text   >直推人员(</text>

<text   >{{dataMessage.people_first}}</text>

<text   >)</text>

              </view>            <view 
                :class="{ 'checkTitlefd3_0_c0': tabs == 'second', 'flex flex-wrap align-center': true }"
                @tap="tabs = 'second'"
                :id="`benben_tabsfd3_0_c0-title-item-${'second'}`"
                
                
              >
                
<text   >间推人员(</text>

<text   >{{dataMessage.people_second}}</text>

<text   >)</text>

              </view>
            </view>
            <view :style="{ left: tabsInfofd3_0_c0.lineleft, maxWidth: tabsInfofd3_0_c0.lineWidth ,}" id="benben_tabsfd3_0_c0-line" class="benben-tabs-line flex benben-flex-tabs-line promotionTeam_linefd3_0_c0"></view>
          </view>
        </scroll-view>
            
        </benben-flex-tabs>
        
</view>
    <template v-for = '(item,key0) in dataList'>
    <view   class='flex flex-wrap align-center promotionTeam_fd3_0_c1'       :key='key0'>
        <image class='promotionTeam_fd3_0_c1_c0'  mode="aspectFit"  :src='item.avatar'></image>
    <view   class='flex flex-direction flex-wrap align-stretch flex-sub'      >
            <view   class='flex flex-wrap align-center'      >
        <text class='promotionTeam_fd3_0_c1_c1_c0_c0'  >{{item.nickname}}</text>
<text class='promotionTeam_fd3_0_c1_c1_c0_c1'  >{{item.mobile}}</text>
<image class='promotionTeam_fd3_0_c1_c1_c0_c2'  mode="aspectFit"  :src='STATIC_URL+"23.png"'  v-if= "item.type=='直推'"></image>
</view>
    <view   class='flex flex-wrap align-center promotionTeam_fd3_0_c1_c1_c1'      >
        <text class='promotionTeam_fd3_0_c1_c1_c1_c0'  >{{item.create_time}}</text>
<text class='promotionTeam_fd3_0_c1_c1_c1_c0'  >注册</text>
    <view   class='flex flex-wrap align-center promotionTeam_fd3_0_c1_c1_c1_c2'      >
            <view   class='flex flex-wrap align-center promotionTeam_fd3_0_c1_c1_c1_c2_c0'      >
        <text class='promotionTeam_fd3_0_c1_c1_c1_c2_c0_c0'  >{{item.inviter_num}}</text>
<text class='promotionTeam_fd3_0_c1_c1_c1_c2_c0_c0'  >人</text>
</view>
        
            <view class='flex  promotionTeam_fd3_0_c1_c1_c1_c2_c1'    ></view>
        
    <view   class='flex flex-wrap align-center promotionTeam_fd3_0_c1_c1_c1_c2_c0'      >
        <text class='promotionTeam_fd3_0_c1_c1_c1_c2_c0_c0'  >{{item.order_total}}</text>
<text class='promotionTeam_fd3_0_c1_c1_c1_c2_c0_c0'  >单</text>
</view>
        
            <view class='flex  promotionTeam_fd3_0_c1_c1_c1_c2_c1'    ></view>
        
    <view   class='flex flex-wrap align-center promotionTeam_fd3_0_c1_c1_c1_c2_c0'      >
        <text class='promotionTeam_fd3_0_c1_c1_c1_c2_c0_c0'  >{{item.award_total}}</text>
<text class='promotionTeam_fd3_0_c1_c1_c1_c2_c0_c0'  >元</text>
</view>
</view>
</view>
</view>
</view>
    </template>
    <fu-empty :pagingListLoadedAll="pagingListLoadedAll" :pagingListNoListData="pagingListNoListData" :listDataLength="listDataLength" :isLoadInit="isLoadInit"></fu-empty>
</view>
</view>
        
<!---flex布局flex布局结束-->
<benben-popup v-model="popupShow1679984842354" :mask="true" :mask-close-able="true"  mode='center' >
    <!---flex布局flex布局开始-->
 <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout promotionTeam_flex_4"    >
            <view   class='flex flex-direction align-stretch promotionTeam_fd4_0'      >
        <text class='promotionTeam_fd4_0_c0'  >分销规则说明</text>
    
    <scroll-view  class='promotionTeam_fd4_0_c1'  :scroll-y='true'  >
        <view class='flex benben-scroll flex align-center'    >
                    <jyf-parser class='promotionTeam_fd4_0_c1_c0'  :html="dataEssay.content | richTextFormat"  >
        </jyf-parser>
</view>
    </scroll-view>
    
</view>
    <view   class='flex flex-wrap align-center justify-center promotionTeam_fd4_1'      >
        <image class='promotionTeam_fd4_1_c0'  mode="aspectFit"  :src='STATIC_URL+"190.png"' @tap.stop="popupShow1679984842354=false" ></image>
</view>
</view>
        
<!---flex布局flex布局结束-->
    
</benben-popup>
    
    
        </view>
    </view>
</template>
<script>
    import pagingList from '@/common/mixin/paging_list.js';
import {validate} from '@/common/utils/validate.js'
    export default {
        components:{},
        mixins: [pagingList],
        
        data(){
			return {"popupShow1679984842354":false,"tabsInfofd3_0_c0":{ lineleft: '', lineWidth: '', moveX: 0, scrollX: 0, PageScrollX: 0 },"minixPagingListsApi":"","pageingListApiMethod":"","allowOnloadGetList":false,"dataMessage":{"people_total":"","people_first":"","people_second":"","award_total":"","award_today":"","award_month":"","order_total":"","order_month":"","available":"","frozen":""},"dataList":[],"dataEssay":{"aid":"","name":"","thumb_img":"","content":"","introduce":""},"dataMy":{"invite_code":"","address":"","address_code":"","hobby":"","tags":"","id":"","userlevel_id":"","mobile":"","real_name":"","avatar":"","account":"","email":"","birthday":"","gender":"","create_time":"","user_money":"","freeze_money":"","total_consumption_money":"","score":"","_mobile":"","coupon":"","collection_count":"","browse_count":"","total_money":"","certified":"","nickname":"","is_pay_password":"","follow_count":""},"tabs":"all"};
		},
		computed:{
            themeColor() {
              return this.$store.getters.themeColor
            },
            
		},
		watch:{},
		onLoad(options){
            this.queryMessageFunc()
this.queryEssayFunc()
this.queryListFunc()
this.getUserinfoFunc()
		},
        onUnload() {
                
        },
		onReady(){
            
		},
		onShow(){
            
		},
		onHide(){
            
		},
		onResize(){
            
		},
		onPullDownRefresh(){
            this.queryMessageFunc()
this.queryListFunc()
this.getUserinfoFunc()
		},
		onReachBottom(e){
            
		},
		onPageScroll(e){
            
		},
		methods:{
                            //分销中心-获取数据统计
                async queryMessageFunc(){
                        //请求方法
    //数据验证
    
  let datadataMessage = await this.$api.get(global.apiUrls.post62fb638cdfb64, {
    
  });
  
  if (datadataMessage.data.code != 1) {
    this.$message.info(datadataMessage.data.msg);
    return
  } 
  let infodataMessage = datadataMessage.data;
  this.dataMessage = infodataMessage.data
  
                },
                //系统文章--获取系统单页内容
                async queryEssayFunc(){
                        //请求方法
    //数据验证
    
  let datadataEssay = await this.$api.get(global.apiUrls.post641568f1b6f87, {
    column_id:'7'
  });
  
  if (datadataEssay.data.code != 1) {
    this.$message.info(datadataEssay.data.msg);
    return
  } 
  let infodataEssay = datadataEssay.data;
  this.dataEssay = infodataEssay.data
  
                },
                //分销中心-获取下级列表
                 queryListFunc(){
                                    this.minixPagingListsApi = global.apiUrls.post62fb72471a2e8;
                this.pageingListApiMethod = 'get';
                this.allowOnloadGetList = false;
                this.pagingListPostDataContent = {type:this.tabs}
                this.listData = [];
                this.dataList = this.listData;
                this.pagingListToggle();
                
                },
                //我的
                async getUserinfoFunc(){
                        //请求方法
    //数据验证
    
  let datadataMy = await this.$api.get(global.apiUrls.post5c78c4772da97, {
    
  });
  
  if (datadataMy.data.code != 1) {
    this.$message.info(datadataMy.data.msg);
    return
  } 
  let infodataMy = datadataMy.data;
  this.dataMy = infodataMy.data
  
                },
                pagingListPostData(){
                    return this.pagingListPostDataContent
                }
		}
    };
</script> 
<style lang="scss" scoped>
           .page{
            width: 100vw;
            overflow-x: hidden;
            min-height: calc(100vh - var(--window-bottom));
            background:url(image-path('22.png')) no-repeat;background-size: 100% auto;
        }
    .promotionTeam_flex_0{
        background:url(image-path('22.png')) no-repeat;width:750rpx;height:88rpx;overflow:hidden;z-index:10;top:0rpx;background-size:100% auto !important;
    }
    .promotionTeam_fd0_1{
        color:#fff;font-size:36rpx;font-weight:500;line-height:50rpx;
    }
    .promotionTeam_fd0_0_c0{
        width:20rpx;height:36rpx;border-radius:0rpx 0rpx 0rpx 0rpx;margin:0rpx 0rpx 0rpx 32rpx;
    }
    .promotionTeam_fd0_0{
        width:100rpx;height:88rpx;
    }
    .promotionTeam_fd1_0_c2_c0{
        color:rgba(0, 142, 77, 1);font-size:28rpx;font-weight:500;line-height:40rpx;
    }
    .promotionTeam_fd1_0_c2{
        background:var(--benbenbgColor1);margin:0rpx 0rpx 0rpx auto;border-radius:32rpx;padding:12rpx 32rpx 12rpx 26rpx;
    }
    .promotionTeam_fd1_0_c1{
        color:#FFFFFF;font-size:36rpx;font-weight:500;line-height:50rpx;margin:0rpx 0rpx 0rpx 24rpx;
    }
    .promotionTeam_fd1_0_c0{
        width:112rpx;height:112rpx;border-radius:56rpx 56rpx 56rpx 56rpx;
    }
    .promotionTeam_fd1_0{
        margin:0rpx 40rpx 0rpx 40rpx;
    }
    .promotionTeam_fd2_0_c1_c2{
        margin:0rpx 0rpx 0rpx 20rpx;
    }
    .promotionTeam_fd2_0_c1_c0_c1_c1{
        color:var(--benbenFontColor7);font-size:28rpx;font-weight:700;
    }
    .promotionTeam_price1_fd2_0_c1_c0_c1_c0{
        font-size:40rpx;
    }
    .promotionTeam_fd2_0_c1_c0_c1_c0{
        color:var(--benbenFontColor7);font-weight:600;
    }
    .promotionTeam_fd2_0_c1{
        padding:0rpx 8rpx 0rpx 8rpx;margin:32rpx 0rpx 0rpx 0rpx;
    }
    .promotionTeam_fd2_0_c0_c1{
        background:var(--benbenbgColor5);width:1rpx;height:64rpx;margin:0rpx 10rpx 0rpx 10rpx;transform:scaleX(0.5);
    }
    .promotionTeam_fd2_0_c0_c0_c1_c1{
        color:var(--benbenFontColor7);font-size:28rpx;font-weight:700;line-height:54rpx;
    }
    .promotionTeam_fd2_0_c0_c0_c1_c0{
        color:var(--benbenFontColor7);font-size:40rpx;font-weight:700;line-height:54rpx;
    }
    .promotionTeam_fd2_0_c0_c0_c0{
        color:var(--benbenFontColor0);font-size:24rpx;font-weight:400;line-height:33rpx;margin:0rpx 0rpx 19rpx 0rpx;
    }
    .promotionTeam_fd2_0_c0{
        border-bottom:1px solid rgba(238, 238, 238, 1);padding:0rpx 8rpx 32rpx 8rpx;margin:0rpx 0rpx 0rpx 0rpx;
    }
    .promotionTeam_fd2_0{
        background:#FFFFFF;border-radius:16rpx 16rpx 16rpx 16rpx;margin:40rpx 32rpx 0rpx 32rpx;padding:40rpx 32rpx 40rpx 32rpx;
    }
    .promotionTeam_fd3_0_c1_c1_c1_c2_c1{
        background:var(--benbenbgColor6);width:1rpx;height:20rpx;margin:0rpx 20rpx 0rpx 20rpx;transform:scaleX(0.5);
    }
    .promotionTeam_fd3_0_c1_c1_c1_c2_c0_c0{
        color:var(--benbenFontColor0);font-size:24rpx;font-weight:700;line-height:33rpx;
    }
    .promotionTeam_fd3_0_c1_c1_c1_c2_c0{
        margin:0rpx 0rpx 0rpx 0rpx;
    }
    .promotionTeam_fd3_0_c1_c1_c1_c2{
        margin:0rpx 0rpx 0rpx auto;
    }
    .promotionTeam_fd3_0_c1_c1_c1_c0{
        color:#666666;font-size:24rpx;font-weight:400;line-height:33rpx;
    }
    .promotionTeam_fd3_0_c1_c1_c1{
        margin:16rpx 0rpx 0rpx 0rpx;
    }
    .promotionTeam_fd3_0_c1_c1_c0_c2{
        width:65rpx;height:32rpx;border-radius:0rpx 0rpx 0rpx 0rpx;
    }
    .promotionTeam_fd3_0_c1_c1_c0_c1{
        color:#666666;font-size:24rpx;font-weight:400;line-height:32rpx;margin:0rpx 16rpx 0rpx 32rpx;
    }
    .promotionTeam_fd3_0_c1_c1_c0_c0{
        color:#333333;font-size:28rpx;font-weight:500;line-height:40rpx;
    }
    .promotionTeam_fd3_0_c1_c0{
        width:96rpx;height:96rpx;border-radius:48rpx 48rpx 48rpx 48rpx;margin:0rpx 24rpx 0rpx 0rpx;
    }
    .promotionTeam_fd3_0_c1{
        border-bottom:1px solid rgba(238, 238, 238, 1);padding:32rpx 0rpx 32rpx 0rpx;
    }
    .promotionTeam_titlefd3_0_c0_c3{
        margin:0rpx 48rpx 0rpx 0rpx;
    }
    .promotionTeam_linefd3_0_c0{
        background:var(--benbenbgColor7);width:32rpx;height:6rpx;top:80rpx;background-size:100% auto !important;
    }
    .checkTitlefd3_0_c0{
        font-weight:700 !important;font-size:32rpx !important;color:rgba(0, 0, 0, 1) !important;background-color:rgba(255, 255, 255, 1) !important;
    }
    ::v-deep .promotionTeam_benbenTabsfd3_0_c0{
        background:#fff;width:632rpx;height:90rpx;white-space:nowrap;text-align:center;font-size:28rpx;font-weight:500;color:#999999;
    }
    .promotionTeam_fd3_0{
        background:#FFFFFF;border-radius:16rpx 16rpx 16rpx 16rpx;margin:24rpx 32rpx 0rpx 32rpx;padding:0rpx 24rpx 0rpx 24rpx;
    }
    .promotionTeam_flex_4{
        width:600rpx;
    }
    .promotionTeam_fd4_1_c0{
        width:48rpx;height:48rpx;border-radius:24rpx 24rpx 24rpx 24rpx;
    }
    .promotionTeam_fd4_1{
        margin:64rpx 0rpx 0rpx 0rpx;
    }
    ::v-deep .promotionTeam_fd4_0_c1_c0{
        width:100%;
    }
    .promotionTeam_fd4_0_c1{
        touch-action:none;margin:32rpx 0rpx 0rpx 0rpx;height:30vh;
    }
    .promotionTeam_fd4_0_c0{
        color:#333333;font-size:36rpx;font-weight:600;line-height:50rpx;text-align:center;
    }
    .promotionTeam_fd4_0{
        background:#FFFFFF;border-radius:16rpx 16rpx 16rpx 16rpx;padding:40rpx 40rpx 97rpx 40rpx;
    }
</style>